import { Tools } from 'weaver-mobile';
import { catchApiError } from '../util/index';

// 获取日程一览表基本数据
export const getBaseData = params => {
  let options = {
    method: 'POST',
    url: '/api/workplan/calendar/getBaseData',
    params: {...params, ismobile: 1}
  };
  return Tools.callApi(options).then(catchApiError);
}

// 获取日程一览表数据
export const getCalendarData = params => {
  let options = {
    method: 'POST',
    url: '/api/workplan/calendar/getCalendarData',
    params: {...params, ismobile: 1}
  };
  return Tools.callApi(options).then(catchApiError);
}

